package day05;

public class Exercise_day05l {
    public static void main(String[] args) {
        int num =0;
        for (int i=2;i<=100;i+=2){//0即是整数也是偶数，所以偶数+2循环，i+=2即为i=0+2
            num+=i;
        }
        System.out.println("所有偶数相加的和是:"+num);
    }
}
